
using System;
using System.Collections.Generic;
using FairyGUI;
namespace Wwo
{
    public class CmdItem : GButton
    {
        GLoader     m_Loader;
        GTextField  m_Title;

        public override void ConstructFromXML(FairyGUI.Utils.XML cxml)
        {
            base.ConstructFromXML(cxml);

            m_Title = this.GetChild("title").asTextField;
            m_Loader = this.GetChild("icon").asLoader;
        }

        // public void setIcon(string value)
        // {
        //     m_Loader.url = value;
        // }

        // public void setTitle(string value)
        // {
        //     m_Title.text = value;
        // }
    }
}
